package com.glory.brepda.adapter;

import androidx.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.BomEntity;
import java.util.List;

public class FixtureDataAdapter extends BaseQuickAdapter<BomEntity.ToolBomLineEntity, BaseViewHolder> {

    public FixtureDataAdapter(@Nullable List<BomEntity.ToolBomLineEntity> data) {
        super(R.layout.item_fixture_list);
    }

    @Override
    protected void convert(BaseViewHolder helper, BomEntity.ToolBomLineEntity item) {
        helper.setText(R.id.tvPartName,item.getRESERVED1());
        helper.setText(R.id.tvToolName,item.getNAME());
        helper.setText(R.id.tvToolSpec,item.getTOOLSPEC());
        helper.setText(R.id.tvToolLife,item.getTOOLLIFE());
        helper.setText(R.id.tvStepName,item.getSTEPNAME());
        helper.setText(R.id.tvChipName,item.getMATERIALNAME());
        helper.setText(R.id.tvIsAlternate,item.getISALTERNATE().equals("Y")?"是":"否");
    }
}
